package com.rtmart.springcloudalibaba.product.service.impl;

import com.rtmart.springcloudalibaba.common.domain.Product;
import com.rtmart.springcloudalibaba.product.mapper.ProductMapper;
import com.rtmart.springcloudalibaba.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public Product findOneById(Long id) {
        return productMapper.findOneById(id);
    }
}
